package com.qf.smartplatform.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.qf.smartplatform.pojo.Device;

import java.util.concurrent.ExecutionException;

/**
 * projectName:day12_27_Test
 * author:guoLei
 * time:2022/1/6 21:07
 * description:
 */
public interface DeviceService  {
    void addDevice(Device device) throws ExecutionException;

    Device findById(String id);

    void sendControl(String id, String command) throws JsonProcessingException;

    void updateDeviceOnlineStaus(Device device);

}
